package bean;

import lombok.Data;

/**
 * @Author: fancyears·milos·malvis
 * @Description:
 * @Date: Created in  2019/4/16 9:45
 * @Modified By:
 */
@Data
public class Parent {
    /**
     * 主键
     */
    private Long  id;
    /**
     * 名字
     */
    private String name;
    /**
     * 年龄
     */
    private float age;
    /**
     * 话语
     */
    private String word;

//    public String getName() {
//        return "这里是Parent:" + name;
//    }

    public void attemptToThrowException() throws Exception {
        throw new Exception("手动触发异常");
    }
}
